import request from '@/utils/request'

// 查询进场回调列表
export function listTcIn(query) {
  return request({
    url: '/energy/tcIn/list',
    method: 'get',
    params: query
  })
}

// 查询进场回调详细
export function getTcIn(parkId) {
  return request({
    url: '/energy/tcIn/' + parkId,
    method: 'get'
  })
}

// 新增进场回调
export function addTcIn(data) {
  return request({
    url: '/energy/tcIn',
    method: 'post',
    data: data
  })
}

// 修改进场回调
export function updateTcIn(data) {
  return request({
    url: '/energy/tcIn',
    method: 'put',
    data: data
  })
}

// 删除进场回调
export function delTcIn(parkId) {
  return request({
    url: '/energy/tcIn/' + parkId,
    method: 'delete'
  })
}
